<template>
  <div id="app">
    <router-view />
  </div>
</template>
<script setup>
import http from "@/utils/api";
import { onMounted } from "vue";
const debounce = (fn, delay) => {
  let timer = null;
  return function () {
    let context = this;
    let args = arguments;
    clearTimeout(timer);
    timer = setTimeout(function () {
      fn.apply(context, args);
    }, delay);
  }
}

const _ResizeObserver = window.ResizeObserver;
window.ResizeObserver = class ResizeObserver extends _ResizeObserver{
  constructor(callback) {
    callback = debounce(callback, 16);
    super(callback);
  }
}
onMounted(() => {
  // const Login = async () => {
  //   let res = await http.base.LoginSelect({ unit: "sn" });
  //   if (res.code == 0) {
  //     sessionStorage.setItem("token", res.data[0].token);
  //   }
  // };
  // if (!sessionStorage.getItem("token")) {
  //   Login();
  // }
});
</script>
<style lang="scss" >
@import "@/assets/commonCv.css";
@import "@/assets/common.css";
@import "@/assets/zj.scss";
// html {
//   height: 1080px !important;
//   width: 1980px !important;
//   margin: 0;
//   padding: 0;
// }
// body {
//   overflow: hidden;
// }
// @media screen and (max-width: 1910px) {
//   body {
//     overflow: scroll;
//   }
// }
/* 特别针对 IE 的解决方案 */
@supports (-ms-ime-align: auto) {
  * {
    border: 0;
    padding: 0;
    margin: 0;
  }
}
#app {
  height: 100vh;
  background-color: rgb(3, 7, 21);
  overflow: hidden;
  width: 100vw;
}
html,
body {
  margin: 0;
  padding: 0;
}
</style>
